package com.example.sxt_practise.thread;

/**
 * @author gaofeng
 * @date 2022年05月24日 21:03
 */
public class ThreadTest extends Thread{

    @Override
    public void run() {
        for (int i = 0; i < 200; i++) {
            System.out.println("我在学习" + i);
        }
    }

    public static void main(String[] args) throws InterruptedException {

        for (int i = 0; i < 200; i++) {
            System.out.println("我在看多线程!" + i);
        }

        ThreadTest thread = new ThreadTest();
        thread.start();



    }


}
